﻿using System;

namespace _5E.Utils.WebHelper.Route
{
    public class RouteException : ApplicationException
    {
        public RouteException(string message) : base(AjaxHelper.ToJSON(message.Replace("\r\n", ""), AjaxResultType.Error)) { }

        public RouteException(Exception ex) : base(AjaxHelper.ToError(ex)) { }
    }
}
